home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2000 January / Macworld (2000-01).dmg / 1999 Games Hall of Fame / Unreal Tournament Demo.sea / Unreal Tournament Demo / System / BotPack.u / Bot_LastManStanding_ScriptText.TextBuffer < prev    next >
Unknown  |  1999-10-20  |  8.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 7d 8e 01 2f 2f 3d 3d 3d |........|}..//===|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 20 4c |========|==..// L|
|00000060| 61 73 74 4d 61 6e 53 74 | 61 6e 64 69 6e 67 2e 0d |astManSt|anding..|
|00000070| 0a 2f 2f 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.//=====|========|
|00000080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000c0| 0d 0a 63 6c 61 73 73 20 | 4c 61 73 74 4d 61 6e 53 |..class |LastManS|
|000000d0| 74 61 6e 64 69 6e 67 20 | 65 78 74 65 6e 64 73 20 |tanding |extends |
|000000e0| 44 65 61 74 68 4d 61 74 | 63 68 50 6c 75 73 3b 0d |DeathMat|chPlus;.|
|000000f0| 0a 0d 0a 76 61 72 20 63 | 6f 6e 66 69 67 20 62 6f |...var c|onfig bo|
|00000100| 6f 6c 20 62 48 69 67 68 | 44 65 74 61 69 6c 47 68 |ol bHigh|DetailGh|
|00000110| 6f 73 74 73 3b 0d 0a 76 | 61 72 28 29 20 69 6e 74 |osts;..v|ar() int|
|00000120| 20 4c 69 76 65 73 3b 0d | 0a 76 61 72 20 69 6e 74 | Lives;.|.var int|
|00000130| 20 54 6f 74 61 6c 4b 69 | 6c 6c 73 2c 20 4e 75 6d | TotalKi|lls, Num|
|00000140| 47 68 6f 73 74 73 3b 0d | 0a 76 61 72 20 6c 6f 63 |Ghosts;.|.var loc|
|00000150| 61 6c 69 7a 65 64 20 73 | 74 72 69 6e 67 20 41 6c |alized s|tring Al|
|00000160| 74 53 74 61 72 74 75 70 | 4d 65 73 73 61 67 65 3b |tStartup|Message;|
|00000170| 0d 0a 0d 0a 65 76 65 6e | 74 20 49 6e 69 74 47 61 |....even|t InitGa|
|00000180| 6d 65 28 20 73 74 72 69 | 6e 67 20 4f 70 74 69 6f |me( stri|ng Optio|
|00000190| 6e 73 2c 20 6f 75 74 20 | 73 74 72 69 6e 67 20 45 |ns, out |string E|
|000001a0| 72 72 6f 72 20 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |rror )..|{...loca|
|000001b0| 6c 20 73 74 72 69 6e 67 | 20 49 6e 4f 70 74 3b 0d |l string| InOpt;.|
|000001c0| 0a 0d 0a 09 54 69 6d 65 | 4c 69 6d 69 74 20 3d 20 |....Time|Limit = |
|000001d0| 30 3b 0d 0a 09 53 75 70 | 65 72 2e 49 6e 69 74 47 |0;...Sup|er.InitG|
|000001e0| 61 6d 65 28 4f 70 74 69 | 6f 6e 73 2c 20 45 72 72 |ame(Opti|ons, Err|
|000001f0| 6f 72 29 3b 0d 0a 09 69 | 66 20 28 20 46 72 61 67 |or);...i|f ( Frag|
|00000200| 4c 69 6d 69 74 20 3d 3d | 20 30 20 29 0d 0a 09 09 |Limit ==| 0 )....|
|00000210| 4c 69 76 65 73 20 3d 20 | 31 30 3b 0d 0a 09 65 6c |Lives = |10;...el|
|00000220| 73 65 0d 0a 09 09 4c 69 | 76 65 73 20 3d 20 46 72 |se....Li|ves = Fr|
|00000230| 61 67 6c 69 6d 69 74 3b | 0d 0a 7d 0d 0a 0d 0a 66 |aglimit;|..}....f|
|00000240| 75 6e 63 74 69 6f 6e 20 | 66 6c 6f 61 74 20 47 61 |unction |float Ga|
|00000250| 6d 65 54 68 72 65 61 74 | 41 64 64 28 42 6f 74 20 |meThreat|Add(Bot |
|00000260| 61 42 6f 74 2c 20 50 61 | 77 6e 20 4f 74 68 65 72 |aBot, Pa|wn Other|
|00000270| 29 0d 0a 7b 0d 0a 09 69 | 66 20 28 20 21 4f 74 68 |)..{...i|f ( !Oth|
|00000280| 65 72 2e 62 49 73 50 6c | 61 79 65 72 20 29 20 0d |er.bIsPl|ayer ) .|
|00000290| 0a 09 09 72 65 74 75 72 | 6e 20 30 3b 0d 0a 09 65 |...retur|n 0;...e|
|000002a0| 6c 73 65 0d 0a 09 09 72 | 65 74 75 72 6e 20 30 2e |lse....r|eturn 0.|
|000002b0| 31 20 2a 20 4f 74 68 65 | 72 2e 50 6c 61 79 65 72 |1 * Othe|r.Player|
|000002c0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|000002d0| 53 63 6f 72 65 3b 0d 0a | 7d 0d 0a 0d 0a 65 76 65 |Score;..|}....eve|
|000002e0| 6e 74 20 70 6c 61 79 65 | 72 70 61 77 6e 20 4c 6f |nt playe|rpawn Lo|
|000002f0| 67 69 6e 0d 0a 28 0d 0a | 09 73 74 72 69 6e 67 20 |gin..(..|.string |
|00000300| 50 6f 72 74 61 6c 2c 0d | 0a 09 73 74 72 69 6e 67 |Portal,.|..string|
|00000310| 20 4f 70 74 69 6f 6e 73 | 2c 0d 0a 09 6f 75 74 20 | Options|,...out |
|00000320| 73 74 72 69 6e 67 20 45 | 72 72 6f 72 2c 0d 0a 09 |string E|rror,...|
|00000330| 63 6c 61 73 73 3c 70 6c | 61 79 65 72 70 61 77 6e |class<pl|ayerpawn|
|00000340| 3e 20 53 70 61 77 6e 43 | 6c 61 73 73 0d 0a 29 0d |> SpawnC|lass..).|
|00000350| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 70 6c 61 79 65 |.{...loc|al playe|
|00000360| 72 70 61 77 6e 20 4e 65 | 77 50 6c 61 79 65 72 3b |rpawn Ne|wPlayer;|
|00000370| 0d 0a 09 6c 6f 63 61 6c | 20 50 61 77 6e 20 50 3b |...local| Pawn P;|
|00000380| 0d 0a 0d 0a 09 2f 2f 20 | 69 66 20 6d 6f 72 65 20 |.....// |if more |
|00000390| 74 68 61 6e 20 31 35 25 | 20 6f 66 20 74 68 65 20 |than 15%| of the |
|000003a0| 67 61 6d 65 20 69 73 20 | 6f 76 65 72 2c 20 6d 75 |game is |over, mu|
|000003b0| 73 74 20 6a 6f 69 6e 20 | 61 73 20 73 70 65 63 74 |st join |as spect|
|000003c0| 61 74 6f 72 0d 0a 09 69 | 66 20 28 20 54 6f 74 61 |ator...i|f ( Tota|
|000003d0| 6c 4b 69 6c 6c 73 20 3e | 20 30 2e 31 35 20 2a 20 |lKills >| 0.15 * |
|000003e0| 28 4e 75 6d 50 6c 61 79 | 65 72 73 20 2b 20 4e 75 |(NumPlay|ers + Nu|
|000003f0| 6d 42 6f 74 73 29 20 2a | 20 4c 69 76 65 73 20 29 |mBots) *| Lives )|
|00000400| 0d 0a 09 7b 0d 0a 09 09 | 53 70 61 77 6e 43 6c 61 |...{....|SpawnCla|
|00000410| 73 73 20 3d 20 63 6c 61 | 73 73 27 43 48 53 70 65 |ss = cla|ss'CHSpe|
|00000420| 63 74 61 74 6f 72 27 3b | 0d 0a 09 09 69 66 20 28 |ctator';|....if (|
|00000430| 20 28 4e 75 6d 53 70 65 | 63 74 61 74 6f 72 73 20 | (NumSpe|ctators |
|00000440| 3e 3d 20 4d 61 78 53 70 | 65 63 74 61 74 6f 72 73 |>= MaxSp|ectators|
|00000450| 29 0d 0a 09 09 09 26 26 | 20 28 28 4c 65 76 65 6c |).....&&| ((Level|
|00000460| 2e 4e 65 74 4d 6f 64 65 | 20 21 3d 20 4e 4d 5f 4c |.NetMode| != NM_L|
|00000470| 69 73 74 65 6e 53 65 72 | 76 65 72 29 20 7c 7c 20 |istenSer|ver) || |
|00000480| 28 4e 75 6d 50 6c 61 79 | 65 72 73 20 3e 20 30 29 |(NumPlay|ers > 0)|
|00000490| 29 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 4d 61 78 |) )....{|.....Max|
|000004a0| 53 70 65 63 74 61 74 6f | 72 73 2b 2b 3b 0d 0a 09 |Spectato|rs++;...|
|000004b0| 09 7d 0d 0a 09 7d 0d 0a | 09 4e 65 77 50 6c 61 79 |.}...}..|.NewPlay|
|000004c0| 65 72 20 3d 20 53 75 70 | 65 72 2e 4c 6f 67 69 6e |er = Sup|er.Login|
|000004d0| 28 50 6f 72 74 61 6c 2c | 20 4f 70 74 69 6f 6e 73 |(Portal,| Options|
|000004e0| 2c 20 45 72 72 6f 72 2c | 20 53 70 61 77 6e 43 6c |, Error,| SpawnCl|
|000004f0| 61 73 73 29 3b 0d 0a 0d | 0a 09 69 66 20 28 20 28 |ass);...|..if ( (|
|00000500| 4e 65 77 50 6c 61 79 65 | 72 20 21 3d 20 4e 6f 6e |NewPlaye|r != Non|
|00000510| 65 29 20 26 26 20 21 4e | 65 77 50 6c 61 79 65 72 |e) && !N|ewPlayer|
|00000520| 2e 49 73 41 28 27 53 70 | 65 63 74 61 74 6f 72 27 |.IsA('Sp|ectator'|
|00000530| 29 20 26 26 20 21 4e 65 | 77 50 6c 61 79 65 72 2e |) && !Ne|wPlayer.|
|00000540| 49 73 41 28 27 43 6f 6d | 6d 61 6e 64 65 72 27 29 |IsA('Com|mander')|
|00000550| 20 29 0d 0a 09 09 4e 65 | 77 50 6c 61 79 65 72 2e | )....Ne|wPlayer.|
|00000560| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00000570| 6e 49 6e 66 6f 2e 53 63 | 6f 72 65 20 3d 20 4c 69 |nInfo.Sc|ore = Li|
|00000580| 76 65 73 3b 0d 0a 0d 0a | 09 72 65 74 75 72 6e 20 |ves;....|.return |
|00000590| 4e 65 77 50 6c 61 79 65 | 72 3b 0d 0a 7d 0d 0a 0d |NewPlaye|r;..}...|
|000005a0| 0a 65 76 65 6e 74 20 50 | 6f 73 74 4c 6f 67 69 6e |.event P|ostLogin|
|000005b0| 28 20 70 6c 61 79 65 72 | 70 61 77 6e 20 4e 65 77 |( player|pawn New|
|000005c0| 50 6c 61 79 65 72 20 29 | 0d 0a 7b 0d 0a 09 69 66 |Player )|..{...if|
|000005d0| 20 28 20 28 54 6f 74 61 | 6c 4b 69 6c 6c 73 20 3e | ( (Tota|lKills >|
|000005e0| 20 30 2e 31 35 20 2a 20 | 28 4e 75 6d 50 6c 61 79 | 0.15 * |(NumPlay|
|000005f0| 65 72 73 20 2b 20 4e 75 | 6d 42 6f 74 73 29 20 2a |ers + Nu|mBots) *|
|00000600| 20 4c 69 76 65 73 29 20 | 26 26 20 4e 65 77 50 6c | Lives) |&& NewPl|
|00000610| 61 79 65 72 2e 49 73 41 | 28 27 43 48 53 70 65 63 |ayer.IsA|('CHSpec|
|00000620| 74 61 74 6f 72 27 29 20 | 29 0d 0a 09 09 47 61 6d |tator') |)....Gam|
|00000630| 65 4e 61 6d 65 20 3d 20 | 41 6c 74 53 74 61 72 74 |eName = |AltStart|
|00000640| 75 70 4d 65 73 73 61 67 | 65 3b 09 0d 0a 09 53 75 |upMessag|e;....Su|
|00000650| 70 65 72 2e 50 6f 73 74 | 4c 6f 67 69 6e 28 4e 65 |per.Post|Login(Ne|
|00000660| 77 50 6c 61 79 65 72 29 | 3b 0d 0a 09 47 61 6d 65 |wPlayer)|;...Game|
|00000670| 4e 61 6d 65 20 3d 20 44 | 65 66 61 75 6c 74 2e 47 |Name = D|efault.G|
|00000680| 61 6d 65 4e 61 6d 65 3b | 0d 0a 7d 0d 0a 0d 0a 66 |ameName;|..}....f|
|00000690| 75 6e 63 74 69 6f 6e 20 | 54 69 6d 65 72 28 29 0d |unction |Timer().|
|000006a0| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 50 61 77 6e 20 |.{...loc|al Pawn |
|000006b0| 50 3b 0d 0a 0d 0a 09 62 | 46 6f 72 63 65 52 65 73 |P;.....b|ForceRes|
|000006c0| 70 61 77 6e 20 3d 20 74 | 72 75 65 3b 0d 0a 09 53 |pawn = t|rue;...S|
|000006d0| 75 70 65 72 2e 54 69 6d | 65 72 28 29 3b 0d 0a 09 |uper.Tim|er();...|
|000006e0| 46 6f 72 20 28 20 50 3d | 4c 65 76 65 6c 2e 50 61 |For ( P=|Level.Pa|
|000006f0| 77 6e 4c 69 73 74 3b 20 | 50 21 3d 4e 6f 6e 65 3b |wnList; |P!=None;|
|00000700| 20 50 3d 50 2e 4e 65 78 | 74 50 61 77 6e 20 29 0d | P=P.Nex|tPawn ).|
|00000710| 0a 09 09 69 66 20 28 20 | 50 2e 49 73 49 6e 53 74 |...if ( |P.IsInSt|
|00000720| 61 74 65 28 27 46 65 69 | 67 6e 69 6e 67 44 65 61 |ate('Fei|gningDea|
|00000730| 74 68 27 29 20 29 0d 0a | 09 09 09 50 2e 47 69 62 |th') )..|...P.Gib|
|00000740| 62 65 64 42 79 28 50 29 | 3b 0d 0a 7d 0d 0a 20 0d |bedBy(P)|;..}.. .|
|00000750| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 4e |.functio|n bool N|
|00000760| 65 65 64 50 6c 61 79 65 | 72 73 28 29 0d 0a 7b 0d |eedPlaye|rs()..{.|
|00000770| 0a 09 69 66 20 28 20 62 | 47 61 6d 65 45 6e 64 65 |..if ( b|GameEnde|
|00000780| 64 20 7c 7c 20 28 54 6f | 74 61 6c 4b 69 6c 6c 73 |d || (To|talKills|
|00000790| 20 3e 20 30 2e 31 35 20 | 2a 20 28 4e 75 6d 50 6c | > 0.15 |* (NumPl|
|000007a0| 61 79 65 72 73 20 2b 20 | 4e 75 6d 42 6f 74 73 29 |ayers + |NumBots)|
|000007b0| 20 2a 20 4c 69 76 65 73 | 29 20 29 0d 0a 09 09 72 | * Lives|) )....r|
|000007c0| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 0d 0a 09 72 |eturn fa|lse;...r|
|000007d0| 65 74 75 72 6e 20 28 4e | 75 6d 50 6c 61 79 65 72 |eturn (N|umPlayer|
|000007e0| 73 20 2b 20 4e 75 6d 42 | 6f 74 73 20 3c 20 4d 69 |s + NumB|ots < Mi|
|000007f0| 6e 50 6c 61 79 65 72 73 | 29 3b 0d 0a 7d 0d 0a 0d |nPlayers|);..}...|
|00000800| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 49 |.functio|n bool I|
|00000810| 73 52 65 6c 65 76 61 6e | 74 28 61 63 74 6f 72 20 |sRelevan|t(actor |
|00000820| 4f 74 68 65 72 29 20 0d | 0a 7b 0d 0a 09 6c 6f 63 |Other) .|.{...loc|
|00000830| 61 6c 20 4d 75 74 61 74 | 6f 72 20 4d 3b 0d 0a 09 |al Mutat|or M;...|
|00000840| 6c 6f 63 61 6c 20 62 6f | 6f 6c 20 62 41 72 65 6e |local bo|ol bAren|
|00000850| 61 4d 75 74 61 74 6f 72 | 3b 0d 0a 0d 0a 09 66 6f |aMutator|;.....fo|
|00000860| 72 20 28 4d 20 3d 20 42 | 61 73 65 4d 75 74 61 74 |r (M = B|aseMutat|
|00000870| 6f 72 3b 20 4d 20 21 3d | 20 4e 6f 6e 65 3b 20 4d |or; M !=| None; M|
|00000880| 20 3d 20 4d 2e 4e 65 78 | 74 4d 75 74 61 74 6f 72 | = M.Nex|tMutator|
|00000890| 29 0d 0a 09 7b 0d 0a 09 | 09 69 66 20 28 4d 2e 49 |)...{...|.if (M.I|
|000008a0| 73 41 28 27 41 72 65 6e | 61 27 29 29 0d 0a 09 09 |sA('Aren|a'))....|
|000008b0| 09 62 41 72 65 6e 61 4d | 75 74 61 74 6f 72 20 3d |.bArenaM|utator =|
|000008c0| 20 54 72 75 65 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 69 | True;..|.}.....i|
|000008d0| 66 20 28 20 62 41 72 65 | 6e 61 4d 75 74 61 74 6f |f ( bAre|naMutato|
|000008e0| 72 20 29 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 20 |r )...{.|...if ( |
|000008f0| 4f 74 68 65 72 2e 49 73 | 41 28 27 49 6e 76 65 6e |Other.Is|A('Inven|
|00000900| 74 6f 72 79 27 29 09 26 | 26 20 28 49 6e 76 65 6e |tory').&|& (Inven|
|00000910| 74 6f 72 79 28 4f 74 68 | 65 72 29 2e 4d 79 4d 61 |tory(Oth|er).MyMa|
|00000920| 72 6b 65 72 20 21 3d 20 | 4e 6f 6e 65 29 20 26 26 |rker != |None) &&|
|00000930| 20 21 4f 74 68 65 72 2e | 49 73 41 28 27 55 54 5f | !Other.|IsA('UT_|
|00000940| 4a 75 6d 70 62 6f 6f 74 | 73 27 29 20 26 26 20 21 |Jumpboot|s') && !|
|00000950| 4f 74 68 65 72 2e 49 73 | 41 28 27 41 6d 6d 6f 27 |Other.Is|A('Ammo'|
|00000960| 29 29 0d 0a 09 09 7b 0d | 0a 09 09 09 49 6e 76 65 |))....{.|....Inve|
|00000970| 6e 74 6f 72 79 28 4f 74 | 68 65 72 29 2e 4d 79 4d |ntory(Ot|her).MyM|
|00000980| 61 72 6b 65 72 2e 6d 61 | 72 6b 65 64 49 74 65 6d |arker.ma|rkedItem|
|00000990| 20 3d 20 4e 6f 6e 65 3b | 0d 0a 09 09 09 72 65 74 | = None;|.....ret|
|000009a0| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 09 09 7d 0d |urn fals|e;....}.|
|000009b0| 0a 09 7d 20 65 6c 73 65 | 20 7b 0d 0a 09 09 69 66 |..} else| {....if|
|000009c0| 20 28 20 4f 74 68 65 72 | 2e 49 73 41 28 27 49 6e | ( Other|.IsA('In|
|000009d0| 76 65 6e 74 6f 72 79 27 | 29 09 26 26 20 28 49 6e |ventory'|).&& (In|
|000009e0| 76 65 6e 74 6f 72 79 28 | 4f 74 68 65 72 29 2e 4d |ventory(|Other).M|
|000009f0| 79 4d 61 72 6b 65 72 20 | 21 3d 20 4e 6f 6e 65 29 |yMarker |!= None)|
|00000a00| 20 26 26 20 21 4f 74 68 | 65 72 2e 49 73 41 28 27 | && !Oth|er.IsA('|
|00000a10| 55 54 5f 4a 75 6d 70 62 | 6f 6f 74 73 27 29 29 0d |UT_Jumpb|oots')).|
|00000a20| 0a 09 09 7b 0d 0a 09 09 | 09 49 6e 76 65 6e 74 6f |...{....|.Invento|
|00000a30| 72 79 28 4f 74 68 65 72 | 29 2e 4d 79 4d 61 72 6b |ry(Other|).MyMark|
|00000a40| 65 72 2e 6d 61 72 6b 65 | 64 49 74 65 6d 20 3d 20 |er.marke|dItem = |
|00000a50| 4e 6f 6e 65 3b 0d 0a 09 | 09 09 72 65 74 75 72 6e |None;...|..return|
|00000a60| 20 66 61 6c 73 65 3b 0d | 0a 09 09 7d 0d 0a 09 7d | false;.|...}...}|
|00000a70| 0d 0a 0d 0a 09 72 65 74 | 75 72 6e 20 53 75 70 65 |.....ret|urn Supe|
|00000a80| 72 2e 49 73 52 65 6c 65 | 76 61 6e 74 28 4f 74 68 |r.IsRele|vant(Oth|
|00000a90| 65 72 29 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |er);..}.|...funct|
|00000aa0| 69 6f 6e 20 62 6f 6f 6c | 20 52 65 73 74 61 72 74 |ion bool| Restart|
|00000ab0| 50 6c 61 79 65 72 28 20 | 70 61 77 6e 20 61 50 6c |Player( |pawn aPl|
|00000ac0| 61 79 65 72 20 29 09 0d | 0a 7b 0d 0a 09 6c 6f 63 |ayer )..|.{...loc|
|00000ad0| 61 6c 20 4e 61 76 69 67 | 61 74 69 6f 6e 50 6f 69 |al Navig|ationPoi|
|00000ae0| 6e 74 20 73 74 61 72 74 | 53 70 6f 74 3b 0d 0a 09 |nt start|Spot;...|
|00000af0| 6c 6f 63 61 6c 20 62 6f | 6f 6c 20 66 6f 75 6e 64 |local bo|ol found|
|00000b00| 53 74 61 72 74 3b 0d 0a | 09 6c 6f 63 61 6c 20 50 |Start;..|.local P|
|00000b10| 61 77 6e 20 50 3b 0d 0a | 0d 0a 09 69 66 28 20 62 |awn P;..|...if( b|
|00000b20| 52 65 73 74 61 72 74 4c | 65 76 65 6c 20 26 26 20 |RestartL|evel && |
|00000b30| 4c 65 76 65 6c 2e 4e 65 | 74 4d 6f 64 65 21 3d 4e |Level.Ne|tMode!=N|
|00000b40| 4d 5f 44 65 64 69 63 61 | 74 65 64 53 65 72 76 65 |M_Dedica|tedServe|
|00000b50| 72 20 26 26 20 4c 65 76 | 65 6c 2e 4e 65 74 4d 6f |r && Lev|el.NetMo|
|00000b60| 64 65 21 3d 4e 4d 5f 4c | 69 73 74 65 6e 53 65 72 |de!=NM_L|istenSer|
|00000b70| 76 65 72 20 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 |ver )...|.return |
|00000b80| 74 72 75 65 3b 0d 0a 0d | 0a 09 69 66 20 28 20 61 |true;...|..if ( a|
|00000b90| 50 6c 61 79 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |Player.P|layerRep|
|00000ba0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 53 63 6f |lication|Info.Sco|
|00000bb0| 72 65 20 3c 20 31 20 29 | 0d 0a 09 7b 0d 0a 09 09 |re < 1 )|...{....|
|00000bc0| 42 72 6f 61 64 63 61 73 | 74 4c 6f 63 61 6c 69 7a |Broadcas|tLocaliz|
|00000bd0| 65 64 4d 65 73 73 61 67 | 65 28 63 6c 61 73 73 27 |edMessag|e(class'|
|00000be0| 4c 4d 53 4f 75 74 4d 65 | 73 73 61 67 65 27 2c 20 |LMSOutMe|ssage', |
|00000bf0| 30 2c 20 61 50 6c 61 79 | 65 72 2e 50 6c 61 79 65 |0, aPlay|er.Playe|
|00000c00| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00000c10| 29 3b 0d 0a 09 09 46 6f | 72 20 28 20 50 3d 4c 65 |);....Fo|r ( P=Le|
|00000c20| 76 65 6c 2e 50 61 77 6e | 4c 69 73 74 3b 20 50 21 |vel.Pawn|List; P!|
|00000c30| 3d 4e 6f 6e 65 3b 20 50 | 3d 50 2e 4e 65 78 74 50 |=None; P|=P.NextP|
|00000c40| 61 77 6e 20 29 0d 0a 09 | 09 09 69 66 20 28 20 50 |awn )...|..if ( P|
|00000c50| 2e 62 49 73 50 6c 61 79 | 65 72 20 26 26 20 28 50 |.bIsPlay|er && (P|
|00000c60| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00000c70| 6f 6e 49 6e 66 6f 2e 53 | 63 6f 72 65 20 3e 3d 20 |onInfo.S|core >= |
|00000c80| 31 29 20 29 0d 0a 09 09 | 09 09 50 2e 50 6c 61 79 |1) )....|..P.Play|
|00000c90| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00000ca0| 6f 2e 53 63 6f 72 65 20 | 2b 3d 20 30 2e 30 30 30 |o.Score |+= 0.000|
|00000cb0| 30 31 3b 0d 0a 09 09 69 | 66 20 28 20 61 50 6c 61 |01;....i|f ( aPla|
|00000cc0| 79 65 72 2e 49 73 41 28 | 27 42 6f 74 27 29 20 29 |yer.IsA(|'Bot') )|
|00000cd0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 61 50 6c 61 79 65 |....{...|..aPlaye|
|00000ce0| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00000cf0| 69 6f 6e 49 6e 66 6f 2e | 62 49 73 53 70 65 63 74 |ionInfo.|bIsSpect|
|00000d00| 61 74 6f 72 20 3d 20 74 | 72 75 65 3b 0d 0a 09 09 |ator = t|rue;....|
|00000d10| 09 61 50 6c 61 79 65 72 | 2e 50 6c 61 79 65 72 52 |.aPlayer|.PlayerR|
|00000d20| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 62 |eplicati|onInfo.b|
|00000d30| 57 61 69 74 69 6e 67 50 | 6c 61 79 65 72 20 3d 20 |WaitingP|layer = |
|00000d40| 74 72 75 65 3b 0d 0a 09 | 09 09 61 50 6c 61 79 65 |true;...|..aPlaye|
|00000d50| 72 2e 47 6f 74 6f 53 74 | 61 74 65 28 27 47 61 6d |r.GotoSt|ate('Gam|
|00000d60| 65 45 6e 64 65 64 27 29 | 3b 0d 0a 09 09 09 72 65 |eEnded')|;.....re|
|00000d70| 74 75 72 6e 20 66 61 6c | 73 65 3b 20 2f 2f 20 62 |turn fal|se; // b|
|00000d80| 6f 74 73 20 64 6f 6e 27 | 74 20 72 65 73 70 61 77 |ots don'|t respaw|
|00000d90| 6e 20 77 68 65 6e 20 67 | 68 6f 73 74 73 0d 0a 09 |n when g|hosts...|
|00000da0| 09 7d 0d 0a 09 7d 0d 0a | 0d 0a 09 73 74 61 72 74 |.}...}..|...start|
|00000db0| 53 70 6f 74 20 3d 20 46 | 69 6e 64 50 6c 61 79 65 |Spot = F|indPlaye|
|00000dc0| 72 53 74 61 72 74 28 4e | 6f 6e 65 2c 20 32 35 35 |rStart(N|one, 255|
|00000dd0| 29 3b 0d 0a 09 69 66 28 | 20 73 74 61 72 74 53 70 |);...if(| startSp|
|00000de0| 6f 74 20 3d 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |ot == No|ne )....|
|00000df0| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 09 |return f|alse;...|
|00000e00| 09 0d 0a 09 66 6f 75 6e | 64 53 74 61 72 74 20 3d |....foun|dStart =|
|00000e10| 20 61 50 6c 61 79 65 72 | 2e 53 65 74 4c 6f 63 61 | aPlayer|.SetLoca|
|00000e20| 74 69 6f 6e 28 73 74 61 | 72 74 53 70 6f 74 2e 4c |tion(sta|rtSpot.L|
|00000e30| 6f 63 61 74 69 6f 6e 29 | 3b 0d 0a 09 69 66 28 20 |ocation)|;...if( |
|00000e40| 66 6f 75 6e 64 53 74 61 | 72 74 20 29 0d 0a 09 7b |foundSta|rt )...{|
|00000e50| 0d 0a 09 09 73 74 61 72 | 74 53 70 6f 74 2e 50 6c |....star|tSpot.Pl|
|00000e60| 61 79 54 65 6c 65 70 6f | 72 74 45 66 66 65 63 74 |ayTelepo|rtEffect|
|00000e70| 28 61 50 6c 61 79 65 72 | 2c 20 74 72 75 65 29 3b |(aPlayer|, true);|
|00000e80| 0d 0a 09 09 61 50 6c 61 | 79 65 72 2e 53 65 74 52 |....aPla|yer.SetR|
|00000e90| 6f 74 61 74 69 6f 6e 28 | 73 74 61 72 74 53 70 6f |otation(|startSpo|
|00000ea0| 74 2e 52 6f 74 61 74 69 | 6f 6e 29 3b 0d 0a 09 09 |t.Rotati|on);....|
|00000eb0| 61 50 6c 61 79 65 72 2e | 56 69 65 77 52 6f 74 61 |aPlayer.|ViewRota|
|00000ec0| 74 69 6f 6e 20 3d 20 61 | 50 6c 61 79 65 72 2e 52 |tion = a|Player.R|
|00000ed0| 6f 74 61 74 69 6f 6e 3b | 0d 0a 09 09 61 50 6c 61 |otation;|....aPla|
|00000ee0| 79 65 72 2e 41 63 63 65 | 6c 65 72 61 74 69 6f 6e |yer.Acce|leration|
|00000ef0| 20 3d 20 76 65 63 74 28 | 30 2c 30 2c 30 29 3b 0d | = vect(|0,0,0);.|
|00000f00| 0a 09 09 61 50 6c 61 79 | 65 72 2e 56 65 6c 6f 63 |...aPlay|er.Veloc|
|00000f10| 69 74 79 20 3d 20 76 65 | 63 74 28 30 2c 30 2c 30 |ity = ve|ct(0,0,0|
|00000f20| 29 3b 0d 0a 09 09 61 50 | 6c 61 79 65 72 2e 48 65 |);....aP|layer.He|
|00000f30| 61 6c 74 68 20 3d 20 61 | 50 6c 61 79 65 72 2e 44 |alth = a|Player.D|
|00000f40| 65 66 61 75 6c 74 2e 48 | 65 61 6c 74 68 3b 0d 0a |efault.H|ealth;..|
|00000f50| 09 09 61 50 6c 61 79 65 | 72 2e 43 6c 69 65 6e 74 |..aPlaye|r.Client|
|00000f60| 53 65 74 52 6f 74 61 74 | 69 6f 6e 28 20 73 74 61 |SetRotat|ion( sta|
|00000f70| 72 74 53 70 6f 74 2e 52 | 6f 74 61 74 69 6f 6e 20 |rtSpot.R|otation |
|00000f80| 29 3b 0d 0a 09 09 61 50 | 6c 61 79 65 72 2e 62 48 |);....aP|layer.bH|
|00000f90| 69 64 64 65 6e 20 3d 20 | 66 61 6c 73 65 3b 0d 0a |idden = |false;..|
|00000fa0| 09 09 61 50 6c 61 79 65 | 72 2e 53 6f 75 6e 64 44 |..aPlaye|r.SoundD|
|00000fb0| 61 6d 70 65 6e 69 6e 67 | 20 3d 20 61 50 6c 61 79 |ampening| = aPlay|
|00000fc0| 65 72 2e 44 65 66 61 75 | 6c 74 2e 53 6f 75 6e 64 |er.Defau|lt.Sound|
|00000fd0| 44 61 6d 70 65 6e 69 6e | 67 3b 0d 0a 09 09 69 66 |Dampenin|g;....if|
|00000fe0| 20 28 20 61 50 6c 61 79 | 65 72 2e 50 6c 61 79 65 | ( aPlay|er.Playe|
|00000ff0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00001000| 2e 53 63 6f 72 65 20 3c | 20 31 20 29 0d 0a 09 09 |.Score <| 1 )....|
|00001010| 7b 0d 0a 09 09 09 2f 2f | 20 54 68 69 73 20 67 75 |{.....//| This gu|
|00001020| 79 20 69 73 20 61 20 67 | 68 6f 73 74 2e 20 20 41 |y is a g|host. A|
|00001030| 64 64 20 61 20 76 69 73 | 75 61 6c 20 65 66 66 65 |dd a vis|ual effe|
|00001040| 63 74 2e 0d 0a 09 09 09 | 69 66 20 28 20 62 48 69 |ct......|if ( bHi|
|00001050| 67 68 44 65 74 61 69 6c | 47 68 6f 73 74 73 20 29 |ghDetail|Ghosts )|
|00001060| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 61 50 6c 61 |.....{..|....aPla|
|00001070| 79 65 72 2e 53 74 79 6c | 65 20 3d 20 53 54 59 5f |yer.Styl|e = STY_|
|00001080| 54 72 61 6e 73 6c 75 63 | 65 6e 74 3b 0d 0a 09 09 |Transluc|ent;....|
|00001090| 09 09 61 50 6c 61 79 65 | 72 2e 53 63 61 6c 65 47 |..aPlaye|r.ScaleG|
|000010a0| 6c 6f 77 20 3d 20 30 2e | 35 3b 0d 0a 09 09 09 7d |low = 0.|5;.....}|
|000010b0| 20 0d 0a 09 09 09 65 6c | 73 65 20 0d 0a 09 09 09 | .....el|se .....|
|000010c0| 09 61 50 6c 61 79 65 72 | 2e 62 48 69 64 64 65 6e |.aPlayer|.bHidden|
|000010d0| 20 3d 20 74 72 75 65 3b | 0d 0a 09 09 09 61 50 6c | = true;|.....aPl|
|000010e0| 61 79 65 72 2e 50 6c 61 | 79 65 72 52 65 73 74 61 |ayer.Pla|yerResta|
|000010f0| 72 74 53 74 61 74 65 20 | 3d 20 27 50 6c 61 79 65 |rtState |= 'Playe|
|00001100| 72 53 70 65 63 74 61 74 | 69 6e 67 27 3b 0d 0a 09 |rSpectat|ing';...|
|00001110| 09 7d 20 0d 0a 09 09 65 | 6c 73 65 0d 0a 09 09 7b |.} ....e|lse....{|
|00001120| 0d 0a 09 09 09 61 50 6c | 61 79 65 72 2e 53 65 74 |.....aPl|ayer.Set|
|00001130| 43 6f 6c 6c 69 73 69 6f | 6e 28 20 74 72 75 65 2c |Collisio|n( true,|
|00001140| 20 74 72 75 65 2c 20 74 | 72 75 65 20 29 3b 0d 0a | true, t|rue );..|
|00001150| 09 09 09 41 64 64 44 65 | 66 61 75 6c 74 49 6e 76 |...AddDe|faultInv|
|00001160| 65 6e 74 6f 72 79 28 61 | 50 6c 61 79 65 72 29 3b |entory(a|Player);|
|00001170| 0d 0a 09 09 7d 0d 0a 09 | 7d 0d 0a 09 72 65 74 75 |....}...|}...retu|
|00001180| 72 6e 20 66 6f 75 6e 64 | 53 74 61 72 74 3b 0d 0a |rn found|Start;..|
|00001190| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 4c 6f |}....fun|ction Lo|
|000011a0| 67 6f 75 74 28 20 70 61 | 77 6e 20 45 78 69 74 69 |gout( pa|wn Exiti|
|000011b0| 6e 67 20 29 0d 0a 7b 0d | 0a 09 53 75 70 65 72 2e |ng )..{.|..Super.|
|000011c0| 4c 6f 67 6f 75 74 28 45 | 78 69 74 69 6e 67 29 3b |Logout(E|xiting);|
|000011d0| 0d 0a 09 43 68 65 63 6b | 45 6e 64 47 61 6d 65 28 |...Check|EndGame(|
|000011e0| 29 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |);..}...|.functio|
|000011f0| 6e 20 4b 69 6c 6c 65 64 | 28 20 70 61 77 6e 20 6b |n Killed|( pawn k|
|00001200| 69 6c 6c 65 72 2c 20 70 | 61 77 6e 20 4f 74 68 65 |iller, p|awn Othe|
|00001210| 72 2c 20 6e 61 6d 65 20 | 64 61 6d 61 67 65 54 79 |r, name |damageTy|
|00001220| 70 65 20 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |pe )..{.|..local |
|00001230| 69 6e 74 20 4f 6c 64 46 | 72 61 67 4c 69 6d 69 74 |int OldF|ragLimit|
|00001240| 3b 0d 0a 0d 0a 09 4f 6c | 64 46 72 61 67 4c 69 6d |;.....Ol|dFragLim|
|00001250| 69 74 20 3d 20 46 72 61 | 67 4c 69 6d 69 74 3b 0d |it = Fra|gLimit;.|
|00001260| 0a 09 46 72 61 67 4c 69 | 6d 69 74 20 3d 20 30 3b |..FragLi|mit = 0;|
|00001270| 0d 0a 0d 0a 09 69 66 20 | 28 20 4f 74 68 65 72 2e |.....if |( Other.|
|00001280| 62 49 73 50 6c 61 79 65 | 72 20 29 0d 0a 09 09 54 |bIsPlaye|r )....T|
|00001290| 6f 74 61 6c 4b 69 6c 6c | 73 2b 2b 3b 0d 0a 09 09 |otalKill|s++;....|
|000012a0| 09 0d 0a 09 53 75 70 65 | 72 2e 4b 69 6c 6c 65 64 |....Supe|r.Killed|
|000012b0| 28 4b 69 6c 6c 65 72 2c | 20 4f 74 68 65 72 2c 20 |(Killer,| Other, |
|000012c0| 64 61 6d 61 67 65 54 79 | 70 65 29 3b 09 0d 0a 0d |damageTy|pe);....|
|000012d0| 0a 09 46 72 61 67 4c 69 | 6d 69 74 20 3d 20 4f 6c |..FragLi|mit = Ol|
|000012e0| 64 46 72 61 67 4c 69 6d | 69 74 3b 0d 0a 0d 0a 09 |dFragLim|it;.....|
|000012f0| 43 68 65 63 6b 45 6e 64 | 47 61 6d 65 28 29 3b 0d |CheckEnd|Game();.|
|00001300| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 43 |.}....fu|nction C|
|00001310| 68 65 63 6b 45 6e 64 47 | 61 6d 65 28 29 0d 0a 7b |heckEndG|ame()..{|
|00001320| 0d 0a 09 6c 6f 63 61 6c | 20 50 61 77 6e 20 50 61 |...local| Pawn Pa|
|00001330| 77 6e 4c 69 6e 6b 3b 0d | 0a 09 6c 6f 63 61 6c 20 |wnLink;.|..local |
|00001340| 69 6e 74 20 53 74 69 6c | 6c 50 6c 61 79 69 6e 67 |int Stil|lPlaying|
|00001350| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 62 6f 6f 6c 20 62 |;...loca|l bool b|
|00001360| 53 74 69 6c 6c 48 75 6d | 61 6e 3b 0d 0a 09 6c 6f |StillHum|an;...lo|
|00001370| 63 61 6c 20 62 6f 74 20 | 42 2c 20 44 3b 0d 0a 0d |cal bot |B, D;...|
|00001380| 0a 09 69 66 20 28 20 62 | 47 61 6d 65 45 6e 64 65 |..if ( b|GameEnde|
|00001390| 64 20 29 0d 0a 09 09 72 | 65 74 75 72 6e 3b 0d 0a |d )....r|eturn;..|
|000013a0| 0d 0a 09 2f 2f 20 43 68 | 65 63 6b 20 74 6f 20 73 |...// Ch|eck to s|
|000013b0| 65 65 20 69 66 20 65 76 | 65 72 79 6f 6e 65 20 69 |ee if ev|eryone i|
|000013c0| 73 20 61 20 67 68 6f 73 | 74 2e 0d 0a 09 4e 75 6d |s a ghos|t....Num|
|000013d0| 47 68 6f 73 74 73 20 3d | 20 30 3b 0d 0a 09 66 6f |Ghosts =| 0;...fo|
|000013e0| 72 20 28 20 50 61 77 6e | 4c 69 6e 6b 3d 4c 65 76 |r ( Pawn|Link=Lev|
|000013f0| 65 6c 2e 50 61 77 6e 4c | 69 73 74 3b 20 50 61 77 |el.PawnL|ist; Paw|
|00001400| 6e 4c 69 6e 6b 21 3d 4e | 6f 6e 65 3b 20 50 61 77 |nLink!=N|one; Paw|
|00001410| 6e 4c 69 6e 6b 3d 50 61 | 77 6e 4c 69 6e 6b 2e 6e |nLink=Pa|wnLink.n|
|00001420| 65 78 74 50 61 77 6e 20 | 29 0d 0a 09 09 69 66 20 |extPawn |)....if |
|00001430| 28 20 50 61 77 6e 4c 69 | 6e 6b 2e 62 49 73 50 6c |( PawnLi|nk.bIsPl|
|00001440| 61 79 65 72 20 29 0d 0a | 09 09 7b 0d 0a 09 09 09 |ayer )..|..{.....|
|00001450| 69 66 20 28 20 50 61 77 | 6e 4c 69 6e 6b 2e 50 6c |if ( Paw|nLink.Pl|
|00001460| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00001470| 6e 66 6f 2e 53 63 6f 72 | 65 20 3c 20 31 20 29 0d |nfo.Scor|e < 1 ).|
|00001480| 0a 09 09 09 09 4e 75 6d | 47 68 6f 73 74 73 2b 2b |.....Num|Ghosts++|
|00001490| 3b 0d 0a 09 09 09 65 6c | 73 65 0d 0a 09 09 09 7b |;.....el|se.....{|
|000014a0| 0d 0a 09 09 09 09 69 66 | 20 28 20 50 61 77 6e 4c |......if| ( PawnL|
|000014b0| 69 6e 6b 2e 49 73 41 28 | 27 50 6c 61 79 65 72 50 |ink.IsA(|'PlayerP|
|000014c0| 61 77 6e 27 29 20 29 0d | 0a 09 09 09 09 09 62 53 |awn') ).|......bS|
|000014d0| 74 69 6c 6c 48 75 6d 61 | 6e 20 3d 20 74 72 75 65 |tillHuma|n = true|
|000014e0| 3b 0d 0a 09 09 09 09 53 | 74 69 6c 6c 50 6c 61 79 |;......S|tillPlay|
|000014f0| 69 6e 67 2b 2b 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 |ing++;..|...}....|
|00001500| 7d 0d 0a 0d 0a 09 2f 2f | 20 45 6e 64 20 74 68 65 |}.....//| End the|
|00001510| 20 67 61 6d 65 20 69 66 | 20 74 68 65 72 65 20 69 | game if| there i|
|00001520| 73 20 6f 6e 6c 79 20 6f | 6e 65 20 6d 61 6e 20 73 |s only o|ne man s|
|00001530| 74 61 6e 64 69 6e 67 2e | 0d 0a 09 69 66 20 28 20 |tanding.|...if ( |
|00001540| 53 74 69 6c 6c 50 6c 61 | 79 69 6e 67 20 3c 20 32 |StillPla|ying < 2|
|00001550| 20 29 0d 0a 09 09 45 6e | 64 47 61 6d 65 28 22 6c | )....En|dGame("l|
|00001560| 61 73 74 6d 61 6e 73 74 | 61 6e 64 69 6e 67 22 29 |astmanst|anding")|
|00001570| 3b 0d 0a 09 65 6c 73 65 | 20 69 66 20 28 20 21 62 |;...else| if ( !b|
|00001580| 53 74 69 6c 6c 48 75 6d | 61 6e 20 29 0d 0a 09 7b |StillHum|an )...{|
|00001590| 0d 0a 09 09 2f 2f 20 6e | 6f 20 68 75 6d 61 6e 73 |....// n|o humans|
|000015a0| 20 6c 65 66 74 20 2d 20 | 67 65 74 20 62 6f 74 73 | left - |get bots|
|000015b0| 20 74 6f 20 62 65 20 6d | 6f 72 65 20 61 67 67 72 | to be m|ore aggr|
|000015c0| 65 73 73 69 76 65 20 61 | 6e 64 20 66 69 6e 69 73 |essive a|nd finis|
|000015d0| 68 20 75 70 0d 0a 09 09 | 66 6f 72 20 28 20 50 61 |h up....|for ( Pa|
|000015e0| 77 6e 4c 69 6e 6b 3d 4c | 65 76 65 6c 2e 50 61 77 |wnLink=L|evel.Paw|
|000015f0| 6e 4c 69 73 74 3b 20 50 | 61 77 6e 4c 69 6e 6b 21 |nList; P|awnLink!|
|00001600| 3d 4e 6f 6e 65 3b 20 50 | 61 77 6e 4c 69 6e 6b 3d |=None; P|awnLink=|
|00001610| 50 61 77 6e 4c 69 6e 6b | 2e 4e 65 78 74 50 61 77 |PawnLink|.NextPaw|
|00001620| 6e 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 42 20 3d |n )....{|.....B =|
|00001630| 20 42 6f 74 28 50 61 77 | 6e 4c 69 6e 6b 29 3b 0d | Bot(Paw|nLink);.|
|00001640| 0a 09 09 09 69 66 20 28 | 20 42 20 21 3d 20 4e 6f |....if (| B != No|
|00001650| 6e 65 20 29 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |ne )....|.{......|
|00001660| 42 2e 43 61 6d 70 69 6e | 67 52 61 74 65 20 3d 20 |B.Campin|gRate = |
|00001670| 30 3b 0d 0a 09 09 09 09 | 42 2e 41 67 67 72 65 73 |0;......|B.Aggres|
|00001680| 73 69 76 65 6e 65 73 73 | 20 2b 3d 20 30 2e 38 3b |siveness| += 0.8;|
|00001690| 0d 0a 09 09 09 09 69 66 | 20 28 20 44 20 3d 3d 20 |......if| ( D == |
|000016a0| 4e 6f 6e 65 20 29 0d 0a | 09 09 09 09 09 44 20 3d |None )..|.....D =|
|000016b0| 20 42 3b 0d 0a 09 09 09 | 09 65 6c 73 65 20 69 66 | B;.....|.else if|
|000016c0| 20 28 20 42 2e 45 6e 65 | 6d 79 20 3d 3d 20 4e 6f | ( B.Ene|my == No|
|000016d0| 6e 65 20 29 0d 0a 09 09 | 09 09 09 42 2e 53 65 74 |ne )....|...B.Set|
|000016e0| 45 6e 65 6d 79 28 44 29 | 3b 0d 0a 09 09 09 7d 0d |Enemy(D)|;.....}.|
|000016f0| 0a 09 09 7d 0d 0a 09 7d | 09 09 0d 0a 7d 0d 0a 0d |...}...}|....}...|
|00001700| 0a 66 75 6e 63 74 69 6f | 6e 20 53 63 6f 72 65 4b |.functio|n ScoreK|
|00001710| 69 6c 6c 28 70 61 77 6e | 20 4b 69 6c 6c 65 72 2c |ill(pawn| Killer,|
|00001720| 20 70 61 77 6e 20 4f 74 | 68 65 72 29 0d 0a 7b 0d | pawn Ot|her)..{.|
|00001730| 0a 09 4f 74 68 65 72 2e | 44 69 65 43 6f 75 6e 74 |..Other.|DieCount|
|00001740| 2b 2b 3b 0d 0a 09 69 66 | 20 28 4f 74 68 65 72 2e |++;...if| (Other.|
|00001750| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00001760| 6e 49 6e 66 6f 2e 53 63 | 6f 72 65 20 3e 20 30 29 |nInfo.Sc|ore > 0)|
|00001770| 0d 0a 09 09 4f 74 68 65 | 72 2e 50 6c 61 79 65 72 |....Othe|r.Player|
|00001780| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00001790| 53 63 6f 72 65 20 2d 3d | 20 31 3b 0d 0a 09 69 66 |Score -=| 1;...if|
|000017a0| 28 20 28 6b 69 6c 6c 65 | 72 20 21 3d 20 4f 74 68 |( (kille|r != Oth|
|000017b0| 65 72 29 20 26 26 20 28 | 6b 69 6c 6c 65 72 20 21 |er) && (|killer !|
|000017c0| 3d 20 4e 6f 6e 65 29 20 | 29 0d 0a 09 09 6b 69 6c |= None) |)....kil|
|000017d0| 6c 65 72 2e 6b 69 6c 6c | 43 6f 75 6e 74 2b 2b 3b |ler.kill|Count++;|
|000017e0| 0d 0a 09 42 61 73 65 4d | 75 74 61 74 6f 72 2e 53 |...BaseM|utator.S|
|000017f0| 63 6f 72 65 4b 69 6c 6c | 28 4b 69 6c 6c 65 72 2c |coreKill|(Killer,|
|00001800| 20 4f 74 68 65 72 29 3b | 0d 0a 7d 09 0d 0a 0d 0a | Other);|..}.....|
|00001810| 66 75 6e 63 74 69 6f 6e | 20 62 6f 6f 6c 20 50 69 |function| bool Pi|
|00001820| 63 6b 75 70 51 75 65 72 | 79 28 20 50 61 77 6e 20 |ckupQuer|y( Pawn |
|00001830| 4f 74 68 65 72 2c 20 49 | 6e 76 65 6e 74 6f 72 79 |Other, I|nventory|
|00001840| 20 69 74 65 6d 20 29 0d | 0a 7b 0d 0a 09 69 66 20 | item ).|.{...if |
|00001850| 28 20 4f 74 68 65 72 2e | 50 6c 61 79 65 72 52 65 |( Other.|PlayerRe|
|00001860| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 53 63 |plicatio|nInfo.Sc|
|00001870| 6f 72 65 20 3c 20 31 20 | 29 0d 0a 09 09 72 65 74 |ore < 1 |)....ret|
|00001880| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 09 0d 0a 09 |urn fals|e;......|
|00001890| 72 65 74 75 72 6e 20 53 | 75 70 65 72 2e 50 69 63 |return S|uper.Pic|
|000018a0| 6b 75 70 51 75 65 72 79 | 28 20 4f 74 68 65 72 2c |kupQuery|( Other,|
|000018b0| 20 69 74 65 6d 20 29 3b | 0d 0a 7d 0d 0a 0d 0a 2f | item );|..}..../|
|000018c0| 2a 0d 0a 41 73 73 65 73 | 73 42 6f 74 41 74 74 69 |*..Asses|sBotAtti|
|000018d0| 74 75 64 65 20 72 65 74 | 75 72 6e 73 20 61 20 76 |tude ret|urns a v|
|000018e0| 61 6c 75 65 20 74 68 61 | 74 20 74 72 61 6e 73 6c |alue tha|t transl|
|000018f0| 61 74 65 73 20 74 6f 20 | 61 6e 20 61 74 74 69 74 |ates to |an attit|
|00001900| 75 64 65 0d 0a 09 09 30 | 20 3d 20 41 54 54 49 54 |ude....0| = ATTIT|
|00001910| 55 44 45 5f 46 65 61 72 | 3b 0d 0a 09 09 31 20 3d |UDE_Fear|;....1 =|
|00001920| 20 72 65 74 75 72 6e 20 | 41 54 54 49 54 55 44 45 | return |ATTITUDE|
|00001930| 5f 48 61 74 65 3b 0d 0a | 09 09 32 20 3d 20 72 65 |_Hate;..|..2 = re|
|00001940| 74 75 72 6e 20 41 54 54 | 49 54 55 44 45 5f 49 67 |turn ATT|ITUDE_Ig|
|00001950| 6e 6f 72 65 3b 0d 0a 09 | 09 33 20 3d 20 72 65 74 |nore;...|.3 = ret|
|00001960| 75 72 6e 20 41 54 54 49 | 54 55 44 45 5f 46 72 69 |urn ATTI|TUDE_Fri|
|00001970| 65 6e 64 6c 79 3b 0d 0a | 2a 2f 09 0d 0a 66 75 6e |endly;..|*/...fun|
|00001980| 63 74 69 6f 6e 20 62 79 | 74 65 20 41 73 73 65 73 |ction by|te Asses|
|00001990| 73 42 6f 74 41 74 74 69 | 74 75 64 65 28 42 6f 74 |sBotAtti|tude(Bot|
|000019a0| 20 61 42 6f 74 2c 20 50 | 61 77 6e 20 4f 74 68 65 | aBot, P|awn Othe|
|000019b0| 72 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 66 6c |r)..{...|local fl|
|000019c0| 6f 61 74 20 41 64 6a 75 | 73 74 3b 0d 0a 0d 0a 09 |oat Adju|st;.....|
|000019d0| 69 66 20 28 20 61 42 6f | 74 2e 62 4e 6f 76 69 63 |if ( aBo|t.bNovic|
|000019e0| 65 20 29 0d 0a 09 09 41 | 64 6a 75 73 74 20 3d 20 |e )....A|djust = |
|000019f0| 2d 30 2e 32 3b 0d 0a 09 | 65 6c 73 65 0d 0a 09 09 |-0.2;...|else....|
|00001a00| 41 64 6a 75 73 74 20 3d | 20 2d 30 2e 32 20 2d 20 |Adjust =| -0.2 - |
|00001a10| 30 2e 31 20 2a 20 61 42 | 6f 74 2e 53 6b 69 6c 6c |0.1 * aB|ot.Skill|
|00001a20| 3b 0d 0a 09 69 66 20 28 | 20 4f 74 68 65 72 2e 62 |;...if (| Other.b|
|00001a30| 49 73 50 6c 61 79 65 72 | 20 26 26 20 28 4f 74 68 |IsPlayer| && (Oth|
|00001a40| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|00001a50| 74 69 6f 6e 49 6e 66 6f | 2e 53 63 6f 72 65 20 3c |tionInfo|.Score <|
|00001a60| 20 31 29 20 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 | 1) )...|.return |
|00001a70| 32 3b 20 2f 2f 62 6f 74 | 73 20 69 67 6e 6f 72 65 |2; //bot|s ignore|
|00001a80| 20 67 68 6f 73 74 73 0d | 0a 09 65 6c 73 65 20 69 | ghosts.|..else i|
|00001a90| 66 20 28 20 61 42 6f 74 | 2e 62 4b 61 6d 69 6b 61 |f ( aBot|.bKamika|
|00001aa0| 7a 65 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 20 31 |ze )....|return 1|
|00001ab0| 3b 0d 0a 09 65 6c 73 65 | 20 69 66 20 28 20 4f 74 |;...else| if ( Ot|
|00001ac0| 68 65 72 2e 49 73 41 28 | 27 54 65 61 6d 43 61 6e |her.IsA(|'TeamCan|
|00001ad0| 6e 6f 6e 27 29 0d 0a 09 | 09 7c 7c 20 28 61 42 6f |non')...|.|| (aBo|
|00001ae0| 74 2e 52 65 6c 61 74 69 | 76 65 53 74 72 65 6e 67 |t.Relati|veStreng|
|00001af0| 74 68 28 4f 74 68 65 72 | 29 20 3e 20 61 42 6f 74 |th(Other|) > aBot|
|00001b00| 2e 41 67 67 72 65 73 73 | 69 76 65 6e 65 73 73 20 |.Aggress|iveness |
|00001b10| 2d 20 41 64 6a 75 73 74 | 29 20 29 0d 0a 09 09 72 |- Adjust|) )....r|
|00001b20| 65 74 75 72 6e 20 30 3b | 0d 0a 09 65 6c 73 65 0d |eturn 0;|...else.|
|00001b30| 0a 09 09 72 65 74 75 72 | 6e 20 31 3b 0d 0a 7d 0d |...retur|n 1;..}.|
|00001b40| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 41 64 64 44 |...funct|ion AddD|
|00001b50| 65 66 61 75 6c 74 49 6e | 76 65 6e 74 6f 72 79 28 |efaultIn|ventory(|
|00001b60| 20 70 61 77 6e 20 50 6c | 61 79 65 72 50 61 77 6e | pawn Pl|ayerPawn|
|00001b70| 20 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 57 65 | )..{...|local We|
|00001b80| 61 70 6f 6e 20 77 65 61 | 70 3b 0d 0a 09 6c 6f 63 |apon wea|p;...loc|
|00001b90| 61 6c 20 69 6e 74 20 69 | 3b 0d 0a 09 6c 6f 63 61 |al int i|;...loca|
|00001ba0| 6c 20 69 6e 76 65 6e 74 | 6f 72 79 20 49 6e 76 3b |l invent|ory Inv;|
|00001bb0| 0d 0a 09 6c 6f 63 61 6c | 20 66 6c 6f 61 74 20 46 |...local| float F|
|00001bc0| 3b 0d 0a 0d 0a 09 69 66 | 20 28 20 50 6c 61 79 65 |;.....if| ( Playe|
|00001bd0| 72 50 61 77 6e 2e 49 73 | 41 28 27 53 70 65 63 74 |rPawn.Is|A('Spect|
|00001be0| 61 74 6f 72 27 29 20 7c | 7c 20 28 62 52 65 71 75 |ator') ||| (bRequ|
|00001bf0| 69 72 65 52 65 61 64 79 | 20 26 26 20 28 43 6f 75 |ireReady| && (Cou|
|00001c00| 6e 74 44 6f 77 6e 20 3e | 20 30 29 29 20 29 0d 0a |ntDown >| 0)) )..|
|00001c10| 09 09 72 65 74 75 72 6e | 3b 0d 0a 09 53 75 70 65 |..return|;...Supe|
|00001c20| 72 2e 41 64 64 44 65 66 | 61 75 6c 74 49 6e 76 65 |r.AddDef|aultInve|
|00001c30| 6e 74 6f 72 79 28 50 6c | 61 79 65 72 50 61 77 6e |ntory(Pl|ayerPawn|
|00001c40| 29 3b 0d 0a 0d 0a 09 47 | 69 76 65 57 65 61 70 6f |);.....G|iveWeapo|
|00001c50| 6e 28 50 6c 61 79 65 72 | 50 61 77 6e 2c 20 22 42 |n(Player|Pawn, "B|
|00001c60| 6f 74 70 61 63 6b 2e 53 | 68 6f 63 6b 52 69 66 6c |otpack.S|hockRifl|
|00001c70| 65 22 29 3b 0d 0a 09 47 | 69 76 65 57 65 61 70 6f |e");...G|iveWeapo|
|00001c80| 6e 28 50 6c 61 79 65 72 | 50 61 77 6e 2c 20 22 42 |n(Player|Pawn, "B|
|00001c90| 6f 74 70 61 63 6b 2e 55 | 54 5f 42 69 6f 52 69 66 |otpack.U|T_BioRif|
|00001ca0| 6c 65 22 29 3b 0d 0a 09 | 47 69 76 65 57 65 61 70 |le");...|GiveWeap|
|00001cb0| 6f 6e 28 50 6c 61 79 65 | 72 50 61 77 6e 2c 20 22 |on(Playe|rPawn, "|
|00001cc0| 42 6f 74 70 61 63 6b 2e | 52 69 70 70 65 72 22 29 |Botpack.|Ripper")|
|00001cd0| 3b 0d 0a 09 47 69 76 65 | 57 65 61 70 6f 6e 28 50 |;...Give|Weapon(P|
|00001ce0| 6c 61 79 65 72 50 61 77 | 6e 2c 20 22 42 6f 74 70 |layerPaw|n, "Botp|
|00001cf0| 61 63 6b 2e 55 54 5f 46 | 6c 61 6b 43 61 6e 6e 6f |ack.UT_F|lakCanno|
|00001d00| 6e 22 29 3b 0d 0a 0d 0a | 09 69 66 20 28 20 50 6c |n");....|.if ( Pl|
|00001d10| 61 79 65 72 50 61 77 6e | 2e 49 73 41 28 27 50 6c |ayerPawn|.IsA('Pl|
|00001d20| 61 79 65 72 50 61 77 6e | 27 29 20 29 0d 0a 09 7b |ayerPawn|') )...{|
|00001d30| 0d 0a 09 09 47 69 76 65 | 57 65 61 70 6f 6e 28 50 |....Give|Weapon(P|
|00001d40| 6c 61 79 65 72 50 61 77 | 6e 2c 20 22 42 6f 74 70 |layerPaw|n, "Botp|
|00001d50| 61 63 6b 2e 53 6e 69 70 | 65 72 52 69 66 6c 65 22 |ack.Snip|erRifle"|
|00001d60| 29 3b 0d 0a 09 09 47 69 | 76 65 57 65 61 70 6f 6e |);....Gi|veWeapon|
|00001d70| 28 50 6c 61 79 65 72 50 | 61 77 6e 2c 20 22 42 6f |(PlayerP|awn, "Bo|
|00001d80| 74 70 61 63 6b 2e 50 75 | 6c 73 65 47 75 6e 22 29 |tpack.Pu|lseGun")|
|00001d90| 3b 0d 0a 09 09 47 69 76 | 65 57 65 61 70 6f 6e 28 |;....Giv|eWeapon(|
|00001da0| 50 6c 61 79 65 72 50 61 | 77 6e 2c 20 22 42 6f 74 |PlayerPa|wn, "Bot|
|00001db0| 70 61 63 6b 2e 4d 69 6e | 69 67 75 6e 32 22 29 3b |pack.Min|igun2");|
|00001dc0| 0d 0a 09 09 47 69 76 65 | 57 65 61 70 6f 6e 28 50 |....Give|Weapon(P|
|00001dd0| 6c 61 79 65 72 50 61 77 | 6e 2c 20 22 42 6f 74 70 |layerPaw|n, "Botp|
|00001de0| 61 63 6b 2e 55 54 5f 45 | 69 67 68 74 62 61 6c 6c |ack.UT_E|ightball|
|00001df0| 22 29 3b 0d 0a 09 09 50 | 6c 61 79 65 72 50 61 77 |");....P|layerPaw|
|00001e00| 6e 2e 53 77 69 74 63 68 | 54 6f 42 65 73 74 57 65 |n.Switch|ToBestWe|
|00001e10| 61 70 6f 6e 28 29 3b 0d | 0a 09 7d 0d 0a 09 65 6c |apon();.|..}...el|
|00001e20| 73 65 0d 0a 09 7b 0d 0a | 09 09 2f 2f 20 72 61 6e |se...{..|..// ran|
|00001e30| 64 6f 6d 69 7a 65 20 6f | 72 64 65 72 20 66 6f 72 |domize o|rder for|
|00001e40| 20 62 6f 74 73 20 73 6f | 20 74 68 65 79 20 64 6f | bots so| they do|
|00001e50| 6e 27 74 20 61 6c 77 61 | 79 73 20 75 73 65 20 74 |n't alwa|ys use t|
|00001e60| 68 65 20 73 61 6d 65 20 | 77 65 61 70 6f 6e 0d 0a |he same |weapon..|
|00001e70| 09 09 46 20 3d 20 46 52 | 61 6e 64 28 29 3b 0d 0a |..F = FR|and();..|
|00001e80| 09 09 69 66 20 28 20 46 | 20 3c 20 30 2e 37 20 29 |..if ( F| < 0.7 )|
|00001e90| 20 0d 0a 09 09 7b 0d 0a | 09 09 09 47 69 76 65 57 | ....{..|...GiveW|
|00001ea0| 65 61 70 6f 6e 28 50 6c | 61 79 65 72 50 61 77 6e |eapon(Pl|ayerPawn|
|00001eb0| 2c 20 22 42 6f 74 70 61 | 63 6b 2e 53 6e 69 70 65 |, "Botpa|ck.Snipe|
|00001ec0| 72 52 69 66 6c 65 22 29 | 3b 0d 0a 09 09 09 47 69 |rRifle")|;.....Gi|
|00001ed0| 76 65 57 65 61 70 6f 6e | 28 50 6c 61 79 65 72 50 |veWeapon|(PlayerP|
|00001ee0| 61 77 6e 2c 20 22 42 6f | 74 70 61 63 6b 2e 50 75 |awn, "Bo|tpack.Pu|
|00001ef0| 6c 73 65 47 75 6e 22 29 | 3b 0d 0a 09 09 09 69 66 |lseGun")|;.....if|
|00001f00| 20 28 20 46 20 3c 20 30 | 2e 34 20 29 0d 0a 09 09 | ( F < 0|.4 )....|
|00001f10| 09 7b 0d 0a 09 09 09 09 | 47 69 76 65 57 65 61 70 |.{......|GiveWeap|
|00001f20| 6f 6e 28 50 6c 61 79 65 | 72 50 61 77 6e 2c 20 22 |on(Playe|rPawn, "|
|00001f30| 42 6f 74 70 61 63 6b 2e | 4d 69 6e 69 67 75 6e 32 |Botpack.|Minigun2|
|00001f40| 22 29 3b 0d 0a 09 09 09 | 09 47 69 76 65 57 65 61 |");.....|.GiveWea|
|00001f50| 70 6f 6e 28 50 6c 61 79 | 65 72 50 61 77 6e 2c 20 |pon(Play|erPawn, |
|00001f60| 22 42 6f 74 70 61 63 6b | 2e 55 54 5f 45 69 67 68 |"Botpack|.UT_Eigh|
|00001f70| 74 62 61 6c 6c 22 29 3b | 0d 0a 09 09 09 7d 0d 0a |tball");|.....}..|
|00001f80| 09 09 09 65 6c 73 65 0d | 0a 09 09 09 7b 0d 0a 09 |...else.|....{...|
|00001f90| 09 09 09 47 69 76 65 57 | 65 61 70 6f 6e 28 50 6c |...GiveW|eapon(Pl|
|00001fa0| 61 79 65 72 50 61 77 6e | 2c 20 22 42 6f 74 70 61 |ayerPawn|, "Botpa|
|00001fb0| 63 6b 2e 55 54 5f 45 69 | 67 68 74 62 61 6c 6c 22 |ck.UT_Ei|ghtball"|
|00001fc0| 29 3b 0d 0a 09 09 09 09 | 47 69 76 65 57 65 61 70 |);......|GiveWeap|
|00001fd0| 6f 6e 28 50 6c 61 79 65 | 72 50 61 77 6e 2c 20 22 |on(Playe|rPawn, "|
|00001fe0| 42 6f 74 70 61 63 6b 2e | 4d 69 6e 69 67 75 6e 32 |Botpack.|Minigun2|
|00001ff0| 22 29 3b 0d 0a 09 09 09 | 7d 0d 0a 09 09 7d 0d 0a |");.....|}....}..|
|00002000| 09 09 65 6c 73 65 0d 0a | 09 09 7b 0d 0a 09 09 09 |..else..|..{.....|
|00002010| 47 69 76 65 57 65 61 70 | 6f 6e 28 50 6c 61 79 65 |GiveWeap|on(Playe|
|00002020| 72 50 61 77 6e 2c 20 22 | 42 6f 74 70 61 63 6b 2e |rPawn, "|Botpack.|
|00002030| 4d 69 6e 69 67 75 6e 32 | 22 29 3b 0d 0a 09 09 09 |Minigun2|");.....|
|00002040| 47 69 76 65 57 65 61 70 | 6f 6e 28 50 6c 61 79 65 |GiveWeap|on(Playe|
|00002050| 72 50 61 77 6e 2c 20 22 | 42 6f 74 70 61 63 6b 2e |rPawn, "|Botpack.|
|00002060| 55 54 5f 45 69 67 68 74 | 62 61 6c 6c 22 29 3b 0d |UT_Eight|ball");.|
|00002070| 0a 09 09 09 69 66 20 28 | 20 46 20 3c 20 30 2e 38 |....if (| F < 0.8|
|00002080| 38 20 29 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 47 |8 ).....|{......G|
|00002090| 69 76 65 57 65 61 70 6f | 6e 28 50 6c 61 79 65 72 |iveWeapo|n(Player|
|000020a0| 50 61 77 6e 2c 20 22 42 | 6f 74 70 61 63 6b 2e 53 |Pawn, "B|otpack.S|
|000020b0| 6e 69 70 65 72 52 69 66 | 6c 65 22 29 3b 0d 0a 09 |niperRif|le");...|
|000020c0| 09 09 09 47 69 76 65 57 | 65 61 70 6f 6e 28 50 6c |...GiveW|eapon(Pl|
|000020d0| 61 79 65 72 50 61 77 6e | 2c 20 22 42 6f 74 70 61 |ayerPawn|, "Botpa|
|000020e0| 63 6b 2e 50 75 6c 73 65 | 47 75 6e 22 29 3b 0d 0a |ck.Pulse|Gun");..|
|000020f0| 09 09 09 7d 0d 0a 09 09 | 09 65 6c 73 65 0d 0a 09 |...}....|.else...|
|00002100| 09 09 7b 0d 0a 09 09 09 | 09 47 69 76 65 57 65 61 |..{.....|.GiveWea|
|00002110| 70 6f 6e 28 50 6c 61 79 | 65 72 50 61 77 6e 2c 20 |pon(Play|erPawn, |
|00002120| 22 42 6f 74 70 61 63 6b | 2e 50 75 6c 73 65 47 75 |"Botpack|.PulseGu|
|00002130| 6e 22 29 3b 0d 0a 09 09 | 09 09 47 69 76 65 57 65 |n");....|..GiveWe|
|00002140| 61 70 6f 6e 28 50 6c 61 | 79 65 72 50 61 77 6e 2c |apon(Pla|yerPawn,|
|00002150| 20 22 42 6f 74 70 61 63 | 6b 2e 53 6e 69 70 65 72 | "Botpac|k.Sniper|
|00002160| 52 69 66 6c 65 22 29 3b | 0d 0a 09 09 09 7d 0d 0a |Rifle");|.....}..|
|00002170| 09 09 7d 0d 0a 09 7d 0d | 0a 09 09 09 09 0d 0a 09 |..}...}.|........|
|00002180| 66 6f 72 20 28 20 69 6e | 76 3d 50 6c 61 79 65 72 |for ( in|v=Player|
|00002190| 50 61 77 6e 2e 69 6e 76 | 65 6e 74 6f 72 79 3b 20 |Pawn.inv|entory; |
|000021a0| 69 6e 76 21 3d 4e 6f 6e | 65 3b 20 69 6e 76 3d 69 |inv!=Non|e; inv=i|
|000021b0| 6e 76 2e 69 6e 76 65 6e | 74 6f 72 79 20 29 0d 0a |nv.inven|tory )..|
|000021c0| 09 7b 0d 0a 09 09 77 65 | 61 70 20 3d 20 57 65 61 |.{....we|ap = Wea|
|000021d0| 70 6f 6e 28 69 6e 76 29 | 3b 0d 0a 09 09 69 66 20 |pon(inv)|;....if |
|000021e0| 28 20 28 77 65 61 70 20 | 21 3d 20 4e 6f 6e 65 29 |( (weap |!= None)|
|000021f0| 20 26 26 20 28 77 65 61 | 70 2e 41 6d 6d 6f 54 79 | && (wea|p.AmmoTy|
|00002200| 70 65 20 21 3d 20 4e 6f | 6e 65 29 20 29 0d 0a 09 |pe != No|ne) )...|
|00002210| 09 09 77 65 61 70 2e 41 | 6d 6d 6f 54 79 70 65 2e |..weap.A|mmoType.|
|00002220| 41 6d 6d 6f 41 6d 6f 75 | 6e 74 20 3d 20 77 65 61 |AmmoAmou|nt = wea|
|00002230| 70 2e 41 6d 6d 6f 54 79 | 70 65 2e 4d 61 78 41 6d |p.AmmoTy|pe.MaxAm|
|00002240| 6d 6f 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 69 6e 76 20 |mo;...}.|....inv |
|00002250| 3d 20 53 70 61 77 6e 28 | 63 6c 61 73 73 27 41 72 |= Spawn(|class'Ar|
|00002260| 6d 6f 72 32 27 29 3b 0d | 0a 09 69 66 28 20 69 6e |mor2');.|..if( in|
|00002270| 76 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 7b 0d |v != Non|e )...{.|
|00002280| 0a 09 09 69 6e 76 2e 62 | 48 65 6c 64 49 74 65 6d |...inv.b|HeldItem|
|00002290| 20 3d 20 74 72 75 65 3b | 0d 0a 09 09 69 6e 76 2e | = true;|....inv.|
|000022a0| 52 65 73 70 61 77 6e 54 | 69 6d 65 20 3d 20 30 2e |RespawnT|ime = 0.|
|000022b0| 30 3b 0d 0a 09 09 69 6e | 76 2e 47 69 76 65 54 6f |0;....in|v.GiveTo|
|000022c0| 28 50 6c 61 79 65 72 50 | 61 77 6e 29 3b 0d 0a 09 |(PlayerP|awn);...|
|000022d0| 7d 0d 0a 7d 09 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |}..}....|.functio|
|000022e0| 6e 20 4d 6f 64 69 66 79 | 42 65 68 61 76 69 6f 75 |n Modify|Behaviou|
|000022f0| 72 28 42 6f 74 20 4e 65 | 77 42 6f 74 29 0d 0a 7b |r(Bot Ne|wBot)..{|
|00002300| 0d 0a 09 2f 2f 20 53 65 | 74 20 74 68 65 20 42 6f |...// Se|t the Bo|
|00002310| 74 27 73 20 4c 69 76 65 | 73 0d 0a 09 4e 65 77 42 |t's Live|s...NewB|
|00002320| 6f 74 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |ot.Playe|rReplica|
|00002330| 74 69 6f 6e 49 6e 66 6f | 2e 53 63 6f 72 65 20 3d |tionInfo|.Score =|
|00002340| 20 4c 69 76 65 73 3b 0d | 0a 0d 0a 09 4e 65 77 42 | Lives;.|....NewB|
|00002350| 6f 74 2e 43 61 6d 70 69 | 6e 67 52 61 74 65 20 2b |ot.Campi|ngRate +|
|00002360| 3d 20 46 52 61 6e 64 28 | 29 3b 0d 0a 7d 0d 0a 0d |= FRand(|);..}...|
|00002370| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 4f |.functio|n bool O|
|00002380| 6e 65 4f 6e 4f 6e 65 28 | 29 0d 0a 7b 0d 0a 09 72 |neOnOne(|)..{...r|
|00002390| 65 74 75 72 6e 20 28 20 | 4e 75 6d 50 6c 61 79 65 |eturn ( |NumPlaye|
|000023a0| 72 73 20 2b 20 4e 75 6d | 42 6f 74 73 20 2d 20 4e |rs + Num|Bots - N|
|000023b0| 75 6d 47 68 6f 73 74 73 | 20 3d 3d 20 32 20 29 3b |umGhosts| == 2 );|
|000023c0| 0d 0a 7d 0d 0a 0d 0a 00 | |..}.....| |
+--------+-------------------------+-------------------------+--------+--------+